/**
 * 
 */
package com.ywm8.ywm.admin.dao;

import java.util.List;

/**
 * @author wangruishun
 * @version ywm8 1.0
 * 2014-1-8 上午11:36:44
 */
public interface BaseDao<T> {
	public void saveEntity(T t);
	public void updateEntity(T t);
	public void deleteEntity(T t);
	public void saveOrUpdateEntity(T t);
	public void batchEntityByHQL(String hql,Object...objects);
	
	public T getEntity(Integer id);
	public T loadEntity(Integer id);
	public List<T> findEntityByHQL(String hql,Object...objects);
}
